home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Utilities / Printer / HP550C / Instructions < prev    next >
Text File  |  1993-05-12  |  3KB  |  54 lines

  1. Installation instructions for the HP550C driver
  2.  
  3.     Avery Wang
  4.     email: avery@ccrma.stanford.edu
  5.     May 13, 1993
  6.  
  7.  
  8. OK, here's the fun part.
  9. First, download the latest version of Ghostscript from your favorite GNU archive.  For example, prep.ai.mit.edu in /pub/gnu/ghostscript-2.6.tar.z
  10. Be careful -- the lower-case 'z' means that the archive was compressed using gzip, NOT the UNIX compress.  You may have to get gzip from your favorite GNU archive as well and compile *that* first in order to be able to uncompress ghostscript.
  11.  
  12. After you unpack ghostscript, if you have version 2.6, you may have to change the line 5th from the bottom so that it reads:
  13. #        include <stdlib.h>
  14. instead of:
  15. #        include <malloc.h>
  16.  
  17. Now, follow the directions in the file make.doc for making for NeXT.
  18. Don't bother with that stuff for the Fontmap file.  We'll take care of that later with a nice sledgehammer.  But before doing the make, modify the unix-gcc.mak file further so that the line
  19. DEVICE_DEVS=x11.dev
  20. becomes
  21. DEVICE_DEVS=cdj550.dev
  22. Now you can do
  23.     make -f unix-gcc.mak
  24.  
  25. The compile takes quite a while, so go for a walk.
  26.  
  27. You might want to strip the resulting binary to save a few megabytes.  Also, you might want to get rid of the *.o files.
  28.  
  29. Move your ghostscript working directory containing the gs binary so it becomes /usr/local/lib/ghostscript.
  30.  
  31. Make a symbolic link to your resulting binary
  32.     ln -s /usr/local/bin/gs /usr/local/lib/ghostscript/gs
  33.  
  34.  
  35. Run FontMap_extract in order to create your font map.  I wrote this hack to extract the font references from /NextLibrary/Fonts and /LocalLibrary/Fonts.  Any fonts that are not included in those libraries (i.e. those that are in your own private ~/Library/Fonts) will not be included, and thus you'll not be able to print those fonts on the HP550C  (one of the disadvantages of having a redundant copy of PS without the exact hooks as the native DPS).
  36.  
  37. Copy the gsif-* files to /usr/local/bin
  38.  
  39. Load the printcap file.  Do:
  40.     niload printcap / < HP550C.printcap
  41.  
  42.  
  43.  
  44. The software part of the installation is finished.  Since I was so lazy, I only set up the system for 19200 baud, which means that all the DIP switches in the front-bottom of the printer should be down except for B6 (the right bank, #6 from the left), which should be up.  This whole setup is hardwired for letter size paper, but you can go dig around in the source code and change that.
  45.  
  46. Make sure you have the right serial cable going to the NeXT.  I've configured the driver for serial port B.  Make sure you have a HP DeskJet 550C printer on the other end of the serial cable.
  47.  
  48. And the last important step: send thanks to avery@ccrma.stanford.edu.
  49.  
  50. That should do it.
  51.  
  52. Enjoy,
  53.     Avery Wang
  54.